2de9adb7ae2c8f5915799fd29a4df57bcee0df4c,src/main/java/org/whispersystems/dispatch/DispatchManager.java,DispatchManager,dispatchMessage,#PubSubReply#,128
Before Change
private void dispatchMessage(PubSubReply reply) {
Optional<DispatchChannel> subscription;
synchronized (subscriptions) {
subscription = Optional.fromNullable(subscriptions.get(reply.getChannel()));
}
if (subscription.isPresent()) {
After Change
}
private void dispatchMessage(PubSubReply reply) {
Optional<DispatchChannel> subscription = Optional.fromNullable(subscriptions.get(reply.getChannel()));
if (subscription.isPresent()) {
dispatchMessage(reply.getChannel(), subscription.get(), reply.getContent().get());